package com.huawei.appgallery.festivalanimation.particle.initializers;

import com.huawei.appgallery.festivalanimation.particle.Particle;
import com.huawei.appgallery.festivalanimation.particle.utils.RandomUtil;

public class RotationSpeedInitializer implements IParticleInitializer {
    private float mMaxRotationSpeed;
    private float mMinRotationSpeed;

    public RotationSpeedInitializer(float f, float f2) {
        this.mMinRotationSpeed = f;
        this.mMaxRotationSpeed = f2;
    }

    public void initParticle(Particle particle) {
        particle.mRotationSpeed = RandomUtil.nextFloat((this.mMaxRotationSpeed - this.mMinRotationSpeed) + this.mMinRotationSpeed);
    }
}
